html,
body,
#root {
  height: 100%;
  margin: 0;
  padding: 0;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial,
    'Noto Sans', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol',
    'Noto Color Emoji';
}

.colorWeak {
  filter: invert(80%);
}

.ant-layout {
  min-height: 100vh;
}
.ant-pro-sider.ant-layout-sider.ant-pro-sider-fixed {
  left: unset;
}

canvas {
  display: block;
}

body {
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

ul,
ol {
  list-style: none;
}

@media (max-width: 768px) {
  .ant-table {
    width: 100%;
    overflow-x: auto;
    &-thead > tr,
    &-tbody > tr {
      > th,
      > td {
        white-space: pre;
        > span {
          display: block;
        }
      }
    }
  }
}
.page-container-box {
  height: 100%;
  margin: 15px;
  background-color: #fff;
  border-radius: 4px;
}
.ant-pro-layout {
  .ant-pro-layout-bg-list {
    background-color: #edeef0;
  }
  // 头部
  .ant-pro-global-header {
    color: #fff;
    background-color: #23292e;
    margin-inline: 0;
    padding-inline: 16px;
    .ant-pro-global-header-logo h1,
    .ant-pro-global-header-collapsed-button,
    .ant-pro-global-header-header-actions-avatar > div {
      color: #fff;
    }
  }
  // 侧边菜单
  .ant-layout-sider {
    &.ant-pro-sider {
      background-color: #2f363c;
    }
    .ant-layout-sider-children {
      padding-inline: 0;
      .ant-menu-item,
      .ant-pro-base-menu-inline,
      .ant-menu-inline.ant-menu-root .ant-menu-submenu-title,
      .ant-menu-light .ant-menu-submenu-selected > .ant-menu-submenu-title {
        color: #fff;
      }

      .ant-menu-light .ant-menu-item-selected {
        color: #fff;
        background-color: #1890ff;
        border-radius: 0px;
      }
      .ant-menu-item {
        position: relative;
        box-sizing: border-box;
        width: 100%;
        margin-inline: 0;
        margin-block: 0;
      }
      .ant-menu .ant-menu-item:hover {
        color: #fff;

        &::before {
          position: absolute;
          top: 50%;
          left: 0;
          width: 1px;
          height: 70%;
          background-color: #1890ff;
          transform: translateY(-50%);
          content: '';
        }
      }

      .ant-pro-base-menu-inline-item-title {
        margin-inline-start: 40px;
      }
      .ant-menu-light.ant-menu-inline .ant-menu-sub.ant-menu-inline {
        background-color: #21262a;
        padding-inline-start: 0;
      }
    }
  }
  // 内容区
  .ant-pro-layout-container {
    min-height: 100vh;
    background-color: #edeef0;
  }
  .ant-pro-layout-content {
    padding-block: 0;
    padding-inline: 0;
  }
  .ant-pro-page-container-warp-page-header {
    padding-block-start: 20px;
    padding-block-end: 0;
  }
  .ant-pro-page-container-children-container {
    padding: 15px;
  }
  // 表单筛选
  .ant-pro-query-filter {
    padding: 15px 0;
  }
  .ant-pro-card .ant-pro-card-body {
    padding: 0;
  }
}
.ant-modal {
  .ant-pro-card .ant-pro-card-body {
    padding: 0;
  }
}
